...
OK, this works. I thought that
control was a reserved keyword.
<u>For readers :</u>
Since I have many TabButton, I don't use id: control as suggested but parent.
TabButton {
id: tabButtonMenu
width: 100
height: parent.height
text: "Menu"
contentItem: Text {
text: parent.text
font: parent.font
opacity: enabled ? 1.0 : 0.3
color: parent.down ? "yellow" : "white"
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
}